/*
 * UserModifier.h
 *
 *  Created on: 2013-2-10
 *      Author: Dspark
 */

#ifndef USERMODIFIER_H_
#define USERMODIFIER_H_
#include "../bo/User.h"
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QComboBox>
#include <QCheckBox>
#include <qmessagebox.h>
#include <qwidget.h>
#include <QGridLayout>
#include "../utile/DAObject.h"
#include <QDebug>
class UserModifier : public QDialog {
	Q_OBJECT
public:
	UserModifier(User& u);
	virtual ~UserModifier();
protected Q_SLOTS:
	void slt_update();
protected:
	bool isInvalid();
private:
	User& user;
	QLabel nameLabel, passwdLabel, loginLabel;
	QLineEdit nameLineEdit, passwdLineEdit, loginLineEdit;
	QPushButton modifyButton, cancleButton;
	QGridLayout layout;
};

#endif /* USERMODIFIER_H_ */
